'use client';

import { ThemeProvider } from 'next-themes';
import { Theme } from '@radix-ui/themes';
import React from "react"


const Providers = ({
    children,
    attribute = "class",
    appearance = "inherit"
}: React.PropsWithChildren<{
    attribute?: "class" | "light" | "dark",
    appearance?: "inherit" | "light" | "dark"
}>) => {

    return (
        <ThemeProvider attribute={attribute}>
            <Theme appearance={appearance}>
                {children}
            </Theme>
        </ThemeProvider>
    );
};

export default Providers